package com.yunhe.sms.controller;

import com.yunhe.commons.dto.Pageable;
import com.yunhe.sms.service.StudentService;
import com.yunhe.sms.service.impl.StudentServiceImpl;
import com.yunhe.webmvc.annotation.RequestMapping;
import com.yunhe.webmvc.annotation.ResponseJson;

/**
 * Created by Administrator on 2017/10/14 0014.
 */
@RequestMapping("/student")
public class StudentController {

    StudentService studentService = new StudentServiceImpl();
    @RequestMapping
    public String list(){
        /*pageable = studentService.findList(pageable);
        req.setAttribute("pageable",pageable);*/
        return "student/stuList2";
    }

    @RequestMapping("/listData")
    @ResponseJson
    public Pageable list(int offset, int limit){
        Pageable pageable = studentService.list(offset, limit);
        return pageable;
    }
}
